const api = require('../controllers/todolist.js')
const router = require('koa-router')()

router.get('/todolist/:id', api.getTodolist)
router.post('/todolist', api.createTodolist)
router.del('/todolist/:user_id/:id', api.removeTodolist)
router.put('/todolist/:user_id/:id/:status', api.updateTodolist)

module.exports = router
